.register {
  width: 100%;
  height: 100vh;
  background-color: $bgc-1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;

  .registerContainer {
    width: 100%;
    max-width: 400px;
    background-color: $bgc-2;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    box-sizing: border-box;
  }

  .registerHeader {
    text-align: center;
    margin-bottom: 30px;

    .registerTitle {
      font-size: 28px;
      font-weight: 600;
      color: $font-1;
      margin: 0 0 10px 0;
    }

    .registerSubtitle {
      font-size: 14px;
      color: $font-2;
      margin: 0;
    }
  }

  .registerForm {
    .formGroup {
      margin-bottom: 20px;

      .formLabel {
        display: block;
        font-size: 14px;
        color: $font-1;
        margin-bottom: 8px;
        font-weight: 500;
      }

      .formInput {
        width: 100%;
        height: 45px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0 15px;
        box-sizing: border-box;
        outline: none;
        font-size: 14px;
        color: $font-1;
        transition: border-color 0.3s ease;

        &:focus {
          border-color: $main-1;
        }

        &::placeholder {
          color: $font-3;
        }
      }
    }

    .registerButton {
      width: 100%;
      height: 45px;
      background-color: $main-1;
      border: none;
      border-radius: 8px;
      color: $bgc-2;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.3s ease;
      margin-top: 10px;

      &:active {
        transform: translateY(1px);
      }
    }
  }

  .registerFooter {
    text-align: center;
    margin-top: 30px;

    .loginText {
      font-size: 14px;
      color: $font-2;
      margin: 0;

      .loginLink {
        color: $main-1;
        cursor: pointer;
        font-weight: 500;
        transition: color 0.3s ease;
      }
    }
  }
}

// 响应式设计
@media (max-width: 480px) {
  .register {
    padding: 15px;

    .registerContainer {
      padding: 30px 20px;
    }

    .registerHeader {
      .registerTitle {
        font-size: 24px;
      }
    }
  }
}
